package com.qdlc.p2p.biz.executer.impl;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.executer.BaseExecuter;
import com.qdlc.p2p.common.constant.Global;
import com.qdlc.p2p.common.constant.LogTplNid;

/**
 * 投标冻结资金
 *
 * @author Kaiju Zhao
 * @date 2016-03-16
 * @version 1.1.0.0
 */
@Service
@Scope(value=ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class BorrowTenderFreezeExcuter extends BaseExecuter {

	@Override
	public void handleAccountWithLog() {
		// 冻结投标金额
		Global.setTransfer(LogTplNid.LOG_TPL_KEY, LogTplNid.TENDER_FREEZE);
		Global.setTransfer("web_url", WEB_URL);
		Global.setTransfer("money", money);
		accountService.freeze(user.getUserId(), toUser.getUserId(), money);
	}

}
